import request from '@/utils/request'

// 查询题目管理列表（分页）
export function listPaperSubject(query) {
  return request({
    url: '/business/paperSubject/list',
    method: 'get',
    params: query
  })
}

// 查询题目管理列表（不分页）
export function listPaperSubjects(query) {
  return request({
    url: '/business/paperSubject/lists',
    method: 'get',
    params: query
  })
}

// 查询题目管理详细
export function getPaperSubject(baseId) {
  return request({
    url: '/business/paperSubject/' + baseId,
    method: 'get'
  })
}

// 新增题目管理
export function addPaperSubject(data) {
  return request({
    url: '/business/paperSubject',
    method: 'post',
    data: data
  })
}

// 修改题目管理
export function updatePaperSubject(data) {
  return request({
    url: '/business/paperSubject',
    method: 'put',
    data: data
  })
}

// 删除题目管理
export function delPaperSubject(baseId) {
  return request({
    url: '/business/paperSubject/' + baseId,
    method: 'delete'
  })
}
